<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>侯体宗</title>
<link rel="stylesheet" href="../css/reset.css">
<link rel="stylesheet" href="../css/adm.css">
</head>
<body>
    <header>
        <h1>侯体宗Blog后台管理界面</h1>
    </header>
    <div id="main">

<!--左侧公共区域-->
<?php include(ROOT.'view/admin/left.html'); ?>

        <div id="rside">
            <table>
                <tr>
                    <td>序号</td>
                    <td>日期</td>
                    <td>评论id</td>
                    <td>评论内容</td>
                    <td>评论人</td>
                    <td>邮箱</td>
                    <td>IP</td>
                    <td>操作</td>
                </tr>
                <?php foreach ($commlist as $v) {?>
                <tr>
                    <td><?php echo $v['comment_id'];?></td>
                    <td><?php echo $v['pubtime'];?></td>
                    <td><?php echo $v['art_id'];?></td>
                    <td><a href="">
                        <?php echo $v['comment'];?></a></td>
                    <td><?php echo $v['username'];?></td>
                    <td><?php echo $v['email'];?></td>
                    <td><?php echo $v['ip'];?></td>
            <td>
              <a href="commdel.php?comment_id=<?php echo $v['comment_id'];?>"onclick=
                    "if(!confirm('确定要删除吗?')){return false;}">删除</a>
            </td>
                </tr>
                <?php }?>

            </table>
            <div id="pagebar">
                Pages:&nbsp;
                <?php echo $pagcode;?>
            </div>
        </div>
    </div>
    <footer>
        Copyright &copy; 2016 · GeneratePress · WordPress
    </footer>
</body>
</html>